package com.songtai.service.impl;

import com.songtai.dao.MessageDao;
import com.songtai.po.Message;
import com.songtai.service.MessageService;
import com.songtai.util.Pager;

/**
 * @author 赵中杨
 * @email zhaozhongyang717@gmail.com
 * @date 2010 2010-4-20 下午04:23:10
 */
public class MessageServiceImpl implements MessageService {
	private MessageDao messageDao;

	@Override
	public int deleteMessage(String mid) {
		return messageDao.deleteMessage(mid);
	}

	@Override
	public Pager<Message> getAllMessage(int currentPage, int pageSize) {
		return messageDao.getAllMessage(currentPage, pageSize);
	}

	@Override
	public void addMessage(Message message) {
		messageDao.addMessage(message);
	}

	/**
	 * @return the messageDao
	 */
	public MessageDao getMessageDao() {
		return messageDao;
	}

	/**
	 * @param messageDao
	 *            the messageDao to set
	 */
	public void setMessageDao(MessageDao messageDao) {
		this.messageDao = messageDao;
	}

}
